package com.mdxq.mall.product.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class MessageService {
//    @SentinelResource("R2")
//    public String getInfo(String name,int year){
//        return "Product" + name + "," + year;
//    }
    @SentinelResource("R1")
    public String getInfo(){
        return "重要信息。。。";
    }
}
